using System;
using System.Collections.Generic;
using System.Text;
using ProjectNoClue.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ProjectNoClue
{
    class LameTestScreen : Screen
    {
        Part test;
        
        public LameTestScreen(ScreenManager sm) : base(sm)
        {
            test = sm.Content.Load<Part>("test");
        }

        public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            test.Rotation = (float)gameTime.TotalGameTime.TotalSeconds * 2;


            

            sm.elapsedTime += gameTime.ElapsedGameTime;
        }

        public override void HandleInput(Microsoft.Xna.Framework.GameTime gameTime)
        {
            test.Position = Input.MouseLocation;
            if (Input.FireClicked())
                sm.AddScreen(new TestPause(sm));
        }

        public override void Draw(Microsoft.Xna.Framework.GameTime gameTime)
        {
            sm.sb.DrawString(sm.font, "=================", new Vector2(250, 250), Color.Blue);
            sm.draw.Draw(test);
        }

        public override void UnloadContent()
        {
            
        }
    }
}
